package day01.日期类.LocalDate类;

import java.time.DayOfWeek;
import java.time.LocalDate;

/**
 * @author feng
 * @Date 2022/1/3 16:16
 * 本地时间
 */
public class Test1 {
    public static void main(String[] args) {
        //获取当前时间
        System.out.println(LocalDate.now());
        //指定日期时间
        LocalDate date = LocalDate.of(2022, 1, 3);
        DayOfWeek dayOfWeek = date.getDayOfWeek();    //Money
        int year = date.getYear();     // 2022
        int dayOfMonth = date.getDayOfMonth();    //3

    }
}
